import request from '@/utils/request'

// 查询
export function getUser(data) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: data
  })
}

// 新增
export function addUser(data) {
  return request({
    url: '/system/user',
    method: 'POST',
    data: data
  })
}

// 修改
export function editUser(data) {
  return request({
    url: '/system/user',
    method: 'PUT',
    data: data
  })
}

// 删除
export function deleteUser(ids) {
  return request({
    url: '/system/user/' + ids,
    method: 'delete'
  })
}
